package cn.ctubu.edu.dp02.controller;

import cn.ctubu.edu.dp02.dao.TeacherRepository;
import cn.ctubu.edu.dp02.service.TeacherService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

@Controller
@RequestMapping("/teacher")


public class TeacherCotroller {
    @Autowired
    private TeacherService teacherService;
    @Autowired
    private TeacherRepository teacherRepository;

    @GetMapping("/list")
    public String getList() {

//        List<Teacher> teachers = teacherService.findAll();
//        model.addAttribute("teachers", teachers);
        return "/teacher/list";
    }




}
